#ifndef _aky_sdadc_H
#define _aky_sdadc_H
#include "aky_define.h"

#define SDADC_POWER_PORT GPIO5 //单色背光
#define SDADC_POWER_PIN Pin_2
#define SDADC_POWER_ON   (LINK2(CHAR_P,SDADC_POWER_PORT) |= SDADC_POWER_PIN)
#define SDADC_POWER_OFF  (LINK2(CHAR_P,SDADC_POWER_PORT) &= ~(SDADC_POWER_PIN))
#define SDADC_POWER_PROT_REG  LINK3(CHAR_P,SDADC_POWER_PORT,CHAR_M)//PxM
#define SDADC_POWER_UP_REG  LINK3(CHAR_P,SDADC_POWER_PORT,CHAR_UR)

void aky_sdadc_init(void);
void aky_op_init(void);
void aky_dac_init(void);
uint16_t aky_get_sdadc_val(void);
void get_sdadc_val_pro(void);

#endif // 